.flex, .flex-ul {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex {
    z-index: 2;
    align-items: center;
    padding: var(--gap-divs) var(--edge-lr);
}

.part-title {
    line-height: 1rem;
    color: hsl(var(--font-color) / .2);
}

.flex-ul {
    width: 100%;
    z-index: 1;
}

.flow-ul {
    --trfm: translateX(1rem);
    --trfm-or: left;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(20%, 25rem, 100%);
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding: var(--edge-lr);
    padding: var(--edge-lr);
    margin: calc(var(--edge-lr) * -1);
    flex: calc(100% + var(--edge-lr) * 2);
    gap: var(--gap-divs);
}

.categories :where(ul,li) {
    margin: 0;
}

.flow-ul > * {
    scroll-snap-align: start;
}

.category {
    --font-color: 0 100% 100%;
    --font-alpha: .3;
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 1rem 1rem 3rem;
    background: #000;
    aspect-ratio: 1;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius);
}

.category:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000, #0000);
}

.cat-info {
    --font-alpha: .8;
    display: flex;
    align-items: center;
    gap: 1em;
    line-height: 1;
    z-index: 1;
    justify-content: space-between;
}

.font-small {
    opacity: .6;
    font-size: var(--font-size-small);
}

.line-clamp {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.cat-des:after {
    font-family: iconfont;
    content: "\e627";
}

.category .post-list {
    counter-reset: section;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.category .post {
    display: flex;
}

.category .post-title:before {
    font-variant-numeric: tabular-nums;
    counter-increment: section;
    content: counter(section);
    background: hsl(var(--font-color) / .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 2em;
    width: 2em;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 .5em 0 0;
}

.category .post-img {
    position: absolute;
    opacity: 0;
    scale: 1 1.1;
    inset: 0;
    z-index: 0;
    transition: .5s;
}

.category .post:hover .post-img, .category .post:nth-child(1) .post-img {
    opacity: 1;
    scale: 1;
}

.category .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle
}

.category .post-info, .category .post-list:hover .post:nth-child(1):not(:hover) .post-info {
    --font-alpha: inherit;
    font-size: var(--font-size-medium);
    z-index: 1
}

.category .post:hover .post-info, .category .post:nth-child(1) .post-info {
    --font-alpha: .8;
}

.category .post-list:hover .post:nth-child(1):not(:hover) .post-meta, .category .post-meta {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: .3s
}

.category .post:hover .post-meta, .category .post:nth-child(1) .post-meta {
    opacity: 1
}

.category .post-meta > * {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: .5em 1em;
    gap: .5em;
    background: hsl(var(--font-color) / .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height: 1;
    border-radius: 1em
}

.post-meta > :before {
    font-family: iconfont;
    font-size: 1.2em
}

.post-views:before {
    content: "\e68e"
}

.post-comments:before {
    content: '\e633'
}

.category .post-meta time:before {
    content: "\e65f"
}

.categories {
    --trfm: translateX(1rem);
    --trfm-or: left;
}

.part-btn {
    position: relative;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    z-index: 2;
}

.part-btn .btn {
    display: inline-flex;
    gap: .5rem;
}

.part-btn .btn > * {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--title-color);
    background: var(--s-bg, rgb(255 255 255 / .5));
    border: thin solid var(--sun-color);
    box-shadow: .25em .25em var(--sun-color);
    border-radius: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    z-index: 2;
    transition: .3s;
}

.part-btn button {
    width: 1.5rem;
    padding: 0;
}

.part-btn button:hover {
    border-color: var(--sun-color);
}

.part-btn button.prev:after {
    content: "←"
}

.part-btn button.next:after {
    content: "→"
}

.part-btn a {
    padding: 0 1em;
    font-size: var(--font-size-small);
}

.part-btn a:before {
    content: "\e627";
    margin: 0 .5em 0 0;
    font-family: iconfont;
}

.categories .btn a:before {
    content: "\e666";
}
